﻿@using Nop.Services.Customers;
@using Nop.Web.Framework.UI;
@using Nop.Core;
@using Nop.Core.Infrastructure
@using Nop.Core.Domain.Customers
@using Telerik.Web.Mvc.UI;

@{
    var currentCustomer = this.WorkContext.CurrentCustomer;
    

    //resources
    Html.AppendScriptParts("~/Content/SpotsHUB.common.js");
    Html.AppendCssFileParts("~/Content/css/logistics.css");
    Html.AppendScriptParts("~/subsites/commerce/Scripts/public.ajaxcart.js");
    Html.AppendCssFileParts("~/Content/css/normalize.css");
    var isAuthenticated = EngineContext.Current.Resolve<IWorkContext>().CurrentCustomer.IsRegistered();

    //page title
    string pageTitle = "";
    if (!String.IsNullOrWhiteSpace(ViewBag.Title))
    {
        pageTitle = ViewBag.Title + " / ";
    }
    pageTitle += "SpotsHUB -SpotsExpress: CHEAPER, BETTER, FASTER";
}
<!DOCTYPE html>
<html>
<head>
    <title>@pageTitle</title>
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script>window.jQuery || document.write('<script src="/Scripts/jquery-1.7.2.min.js"><\/script>')</script>
    <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>
    <script>window.jQuery.ui || document.write('<script src="/Scripts/jquery-ui-1.10.2.min.js"><\/script>')</script>
    <meta name="description" content="SpotsHUB/SpotsExpress are the fastest and simplest online shopping and delivery options for Greater Vancouver. Use our service to your advantage for a low rate!" />
    <meta name="keywords" content="SpotsHUB, SpotsEXPRESS, Business Solutions, Same-Day Delivery, Online Shopping, E-Commerce, Fast, Simple, User-Friendly, Greater Vancouver Regional District, Cheap Delivery Option, Online Order, Logistics Services" />
    <meta name="robots" content="nofollow" />
    @(Html.Telerik().StyleSheetRegistrar()
    .DefaultGroup(group => group
        .Add("telerik.common.min.css")
        .Add("telerik.spotshub.min.css")
        //uncomment the lines below in order to combine and compress CSS files
        //.Combined(true)
        //.Compress(true)
        ))
    @(Html.Telerik().ScriptRegistrar()
            .jQuery(false)
            .jQueryValidation(false)
            )


    @Html.NopCssFiles(this.Url, ResourceLocation.Head)
    @Html.NopScripts(this.Url, ResourceLocation.Head)
    @StackExchange.Profiling.MiniProfiler.RenderIncludes()
    <!--[if gte IE 9]>
        <link href="@Url.Content("~/Content/css/ie9.css")" type="text/css" rel="stylesheet" />
    <![endif]-->
    <!--[if lte IE 8]>
        <link href="@Url.Content("~/Content/css/ie8.css")" type="text/css" rel="stylesheet" />
    <![endif]-->
    <!--[if lte IE 7]>
        <link href="@Url.Content("~/Content/css/ie7.css")" type="text/css" rel="stylesheet" />
    <![endif]-->
</head>
<body class="grad login-layout">

    <header>
        <div id="sh-header-wrapper">
            <div id="sh-header">
                <div id="sh-header-logo">
	                <a href="/"><img src="/Content/images/spotshub-textlogo.png"></a>
                    <span>Shop Local, Free Delivery</span>
                </div>
                @*
                <div id="sh-search-bar">
                    @Html.Action("SearchBox", "Catalog", new { area = "Commerce" })
                </div>
                *@
                @*if (User.Identity.Name != "")
                {
                    <div style="text-align:right;padding-top: 35px;margin-right: 5px;color:#666;">Hi, <strong>@User.Identity.Name</strong></div>
                }*@
                @*
                <div id="sh-header-menu">
                    <nav>
                        @Html.Action("HeaderLinks", "Common", new { area = "Commerce" })
                    </nav>
                </div>*@
            </div>
        </div>
    </header>
    <div id="sh-page-wrapper">

        @*@Html.Partial("_Notifications")*@
        <article>
            <div id="login-main" class="cph">
                @RenderBody()
            </div>
        </article>

    </div>
    <footer>
        @Html.Partial("Footer")
    </footer>
    <div class="login-background-image"></div>
    <div id="ajax-notification">
        <div class="ajax-loading-wrapper">
            <div class="ajax-loading-img">
                <img src="/Content/images/loading-ring.gif" />
                <span>@T("Common.Loading")</span>
            </div>
        </div>
        <div class="ajax-loading-box window">
            <div class="ajax-loading-title">
                <div class="window-title grad-lightgrey grad">
                    <div class="window-title-bar grad-titleshine grad title">
                    </div>
                </div>
            </div>
            <div class="ajax-loading-content window-content space content"></div>
        </div>
    </div>
    <div id="ajax-loading-bar"><b>Loading</b><img src="/Content/images/loading-bar.gif" /></div>

</body>
</html>
